package org.clever.arkdemo.video;

import com.qcloud.vod.VodUploadClient;
import com.qcloud.vod.model.VodUploadRequest;

public class VideoUploadDemo {

    public static void main(String[] args) {
        String secretId = "AKIDqWx97ygAQSFo8D3g7KI1Ww85rOhlbCYg";
        String secretKey = "vb2EF3c1BAvTrAG8lCONDnBMJ1Vlna8S";
        long subAppId = 1258399249L;
        VodUploadClient client = new VodUploadClient(secretId, secretKey);
        VodUploadRequest request = new VodUploadRequest();

        request.setSubAppId(subAppId);
        request.setMediaFilePath("/Users/zhangxingyu/Desktop/v/db-autoconf-demo.mp4");
        // 一个任务流
        // request.setProcedure("");

        try {
            client.upload("ap-beijing", request);
        } catch (Exception e) {
            e.printStackTrace();
        }




    }
}
